package com.koron.plan.web.patrolplan.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.plan.web.common.DeleteFlag;
import com.koron.plan.web.common.Sortable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("巡视计划-数据记录项")
public class PatrolPlanRecordBean implements Serializable, Sortable, DeleteFlag {

    private static final long serialVersionUID = -83449967482251256L;

    @ApiModelProperty("32位随机数，主键")
    private String id;

    @ApiModelProperty("巡视点id w_plan_patrol_point.id")
    private String patrolPointId;

    @ApiModelProperty("巡视设备id w_plan_patrol_equipment.id")
    private String patrolEquipmentId;

    @ApiModelProperty("设备运行状态 未运行：0: 运行中：1")
    private Integer runState;

    @ApiModelProperty("记录项名称")
    private String itemName;

    @ApiModelProperty("记录项单位")
    private String itemUnit;

    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @ApiModelProperty(value = "数据标准")
    private String dataStandard;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty("删除标志 0：未删除 1：已删除")
    private Boolean deleteFlag;
}
